package org.example.spring_boot_blog.service;

import jakarta.validation.constraints.NotNull;
import org.example.spring_boot_blog.common.pojo.request.AddBlogParam;
import org.example.spring_boot_blog.common.pojo.request.UpBlogParam;
import org.example.spring_boot_blog.common.pojo.response.BlogInfoResponse;

import java.util.List;

public interface BlogService {
    List<BlogInfoResponse> getList();

    BlogInfoResponse getBlogDetail(Integer blogId);

    Boolean addBlog(AddBlogParam param);

    Boolean updateBlog(UpBlogParam param);

    Boolean deleteBlog(@NotNull Integer blogId);
}
